package me.muci.singletonPattern;

/**
 * ClassName: LazySingletonClass <br/>
 * Description: 懒汉式加载，线程不安全<br/>
 * date: 2021/8/5 9:33<br/>
 *
 * @author muci<br />
 * @description
 * @since JDK 1.8
 */
public class LazySingletonClass {

    private static LazySingletonClass instance;

    private LazySingletonClass(){}

    public static LazySingletonClass getInstance(){
        if (instance == null){
            instance = new LazySingletonClass();
        }
        return instance;
    }
}
